import 'package:flutter/material.dart';

class IntellAnnex {
  //   {
  // "name": "附件名称",
  // "type": 1,
  // "path": "123123123",
  // "size": "123123"
  // }
  String? _name;
  int? _type;
  String? _path;
  String? _size;
  String? _coverImg;

  IntellAnnex({
      String? name,
      int? type,
      String? path,
      String? size,
  String? coverImg}){
      _name = name;
      _type = type;
      _path = path;
      _size = size;
      _coverImg = coverImg;
  }
  IntellAnnex.fromJson(dynamic json) {
    _name = json["name"];
    _type = json["type"];
    _path = json["path"];
    _size = json["size"];
    _coverImg = json["coverImg"];
  }
  String? get name => _name;
  int? get type => _type;
  String? get path => _path;
  String? get size => _size;
  String? get coverImg => _coverImg;
  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["name"] = _name;
    map["type"] = _type;
    map["path"] = _path;
    map["size"] = _size;
    map["coverImg"] = _coverImg;
    return map;
  }
  @override
  String toString() {
    return 'IntellAnnex{name: $name, type: $type, path: $path, size: $size}, coverImg: $coverImg}';
  }
  set coverImg(String? value) {
    _coverImg = value;
  }

  set name(String? value) {
    _name = value;
  }
  set type(int? value) {
    _type = value;
  }
  set path(String? value) {
    _path = value;
  }
  set size(String? value) {
    _size = value;
  }
}
